<?php

namespace app\common\validate;


use think\Validate;

class Article extends Validate
{
    protected $rule =   [
        'title'  => 'require|max:50',
        'content'   => 'require|min:100',
    ];

    protected $message  =   [
        'title.require' => '标题不能为空',
        'title.max' =>'标题长度不能超过50个字',
        'content.require' => '内容不能为空',
        'content.min' => '内容最少为100个字',
    ];
    protected $scene = [
       // 'reg'  =>  ['email','pwd','repwd'],
    ];
}